new Vue({
  el: '#app',
  data: function () {
    return {
      form: {
        speed: undefined,
        quality: undefined,
        attitude: undefined,
        customerName: '',
        comprehensiveEvaluation: null,
      },
      iconClasses: ['icon-rate-face-1', 'icon-rate-face-2', 'icon-rate-face-3'] // 等同于 { 2: 'icon-rate-face-1', 4: { value: 'icon-rate-face-2', excluded: true }, 5: 'icon-rate-face-3' }
    }
  },
  mounted() {
  },
  methods: {
    onSubmit() {
      axios({
        method: 'post',
        url: '/questionAiresEntityController/saveQuestionAiresEntity',
        data: {
          speed: this.form.speed,
          quality: this.form.quality,
          attitude: this.form.attitude,
          customerName: this.form.customerName,
          comprehensiveEvaluation: this.form.comprehensiveEvaluation,
        }
      }).then(response => {
        this.form = {
          speed: undefined,
          quality: undefined,
          attitude: undefined,
          customerName: '',
          comprehensiveEvaluation: null,
        };
        this.$message.success("提交成功,感谢您的参与");
      });
    }
  }
});